﻿using System;
using System.Drawing;
using System.Reflection;

namespace UI
{
    class ImageManager
    {
        private ImageManager() { }
        static ImageManager()
        {
            Assembly assembly = Assembly.GetExecutingAssembly();

            Null = Image.FromStream(assembly.GetManifestResourceStream("UI.Res.Numbers.s.png"));

            N01 = Image.FromStream(assembly.GetManifestResourceStream("UI.Res.Numbers.01.png"));
            N02 = Image.FromStream(assembly.GetManifestResourceStream("UI.Res.Numbers.02.png"));
            N03 = Image.FromStream(assembly.GetManifestResourceStream("UI.Res.Numbers.03.png"));
            N04 = Image.FromStream(assembly.GetManifestResourceStream("UI.Res.Numbers.04.png"));
            N05 = Image.FromStream(assembly.GetManifestResourceStream("UI.Res.Numbers.05.png"));
            N06 = Image.FromStream(assembly.GetManifestResourceStream("UI.Res.Numbers.06.png"));
            N07 = Image.FromStream(assembly.GetManifestResourceStream("UI.Res.Numbers.07.png"));
            N08 = Image.FromStream(assembly.GetManifestResourceStream("UI.Res.Numbers.08.png"));
            N09 = Image.FromStream(assembly.GetManifestResourceStream("UI.Res.Numbers.09.png"));
            N10 = Image.FromStream(assembly.GetManifestResourceStream("UI.Res.Numbers.10.png"));
            N11 = Image.FromStream(assembly.GetManifestResourceStream("UI.Res.Numbers.11.png"));
            N12 = Image.FromStream(assembly.GetManifestResourceStream("UI.Res.Numbers.12.png"));
            N13 = Image.FromStream(assembly.GetManifestResourceStream("UI.Res.Numbers.13.png"));
            N14 = Image.FromStream(assembly.GetManifestResourceStream("UI.Res.Numbers.14.png"));
            N15 = Image.FromStream(assembly.GetManifestResourceStream("UI.Res.Numbers.15.png"));
            N16 = Image.FromStream(assembly.GetManifestResourceStream("UI.Res.Numbers.16.png"));
            N17 = Image.FromStream(assembly.GetManifestResourceStream("UI.Res.Numbers.17.png"));
            N18 = Image.FromStream(assembly.GetManifestResourceStream("UI.Res.Numbers.18.png"));
            N19 = Image.FromStream(assembly.GetManifestResourceStream("UI.Res.Numbers.19.png"));
            N20 = Image.FromStream(assembly.GetManifestResourceStream("UI.Res.Numbers.20.png"));
        }

        public static readonly Image Null;

        public static readonly Image N01;
        public static readonly Image N02;
        public static readonly Image N03;
        public static readonly Image N04;
        public static readonly Image N05;
        public static readonly Image N06;
        public static readonly Image N07;
        public static readonly Image N08;
        public static readonly Image N09;
        public static readonly Image N10;
        public static readonly Image N11;
        public static readonly Image N12;
        public static readonly Image N13;
        public static readonly Image N14;
        public static readonly Image N15;
        public static readonly Image N16;
        public static readonly Image N17;
        public static readonly Image N18;
        public static readonly Image N19;
        public static readonly Image N20;

        public static Image GetImage(int num)
        {
            switch (num)
            {
                case 1: return N01;
                case 2: return N02;
                case 3: return N03;
                case 4: return N04;
                case 5: return N05;
                case 6: return N06;
                case 7: return N07;
                case 8: return N08;
                case 9: return N09;
                case 10: return N10;
                case 11: return N11;
                case 12: return N12;
                case 13: return N13;
                case 14: return N14;
                case 15: return N15;
                case 16: return N16;
                case 17: return N17;
                case 18: return N18;
                case 19: return N19;
                case 20: return N20;
                default:
                    return Null;
            }
        }
    }
}
